﻿/*
=======================================================
    CheckWireropeDetailPosition【在用绳检测位置】
=======================================================
*/

namespace Services
{
    public interface ICheckWireropeDetailPositionRepository : IRepository<CheckWireropeDetailPosition>
    {
        List<CheckWireropeDetailPosition> GetListByCheckWireropeDetailIDs(params int[] checkWireropeDetailIDs);
    }


    public class CheckWireropeDetailPositionRepository : BaseRepository<CheckWireropeDetailPosition>, ICheckWireropeDetailPositionRepository
    {
        public CheckWireropeDetailPositionRepository(ISqlSugarClient dB, ICurrentUser currentUser, IQuery<CheckWireropeDetailPosition> query)
            : base(dB, currentUser, query)
        {
        }

        #region 获取一根绳子的录入的位置数据
        public List<CheckWireropeDetailPosition> GetListByCheckWireropeDetailIDs(params int[] checkWireropeDetailIDs)
        {
            return _query.GetQueryable().Where(x => checkWireropeDetailIDs.Contains(x.CheckWireropeDetailID)).ToList();
        } 
        #endregion
    }
}
